<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%String path = request.getContextPath();%>
<html>
<head>
    <title>Title</title>
    <script>
        var setting = {
            data: {
                simpleData: {
                    enable: true
                }
            },check: {
                enable: true,
                autoCheckTrigger: true
            },
            async: {
                //true表示开启异步加载模式
                enable: true,
                url: "<%=path%>/menu/getZtreeMenuChecked/"+$("#positionId").val()
            }
        };


        $(document).ready(function(){
            $.fn.zTree.init($("#treeDemo"), setting);
        });
    </script>
</head>
<body>
    <form role="form" id="pos_update_form">
        <input type="hidden" name="positionId" id="positionId" value="${position.positionId}">
      <div class="form-group">
        <label for="positionName">权限</label>
        <input type="text" class="form-control" id="positionName" name="positionName" placeholder="权限" value="${position.positionName}">
      </div>

        <div class="form-group">
            <label for="treeDemo">树状图</label>
            <div class="zTreeDemoBackground left">
                <ul id="treeDemo" class="ztree"></ul>
            </div>
      </div>

    </form>
</body>
</html>
